package cn.itsource.controller.app;

import cn.itsource.pojo.domain.DriverAuthMaterial;
import cn.itsource.pojo.query.PageQueryWrapper;
import cn.itsource.pojo.ro.RealAuthRo;
import cn.itsource.result.JSONResult;
import cn.itsource.result.PageResult;
import cn.itsource.service.IDriverAuthMaterialService;
import cn.itsource.service.IDriverSummaryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Tag(name = "司机实名资料",description = "司机实名资料")
@RestController
@RequestMapping("/app/driverAuthMaterial")
public class AppDriverAuthMaterialController {

    @Autowired
    private IDriverAuthMaterialService driverAuthMaterialService;
    @Autowired
    private IDriverSummaryService driverSummaryService;

    @GetMapping("/getDriverStatus")
    public JSONResult getDriverStatus(){
        return JSONResult.success(driverAuthMaterialService.getDriverStatus());
    }

    @GetMapping("/getDriverSummary")
    public JSONResult getDriverSummary(){
        return JSONResult.success(driverSummaryService.getDriverSummary());
    }


}
